package com.example.designPattern.Proxy;

/*
 * @Project:com.zh.DesignPattern.Proxy
 * @Creator:Administrator
 * @Description:
 * @Date Created in 11:22 2018/11/18
 */
public class StaticProxyStar implements  IStar{

    private IStar realStar;

    public StaticProxyStar(IStar realStar) {
        this.realStar = realStar;
    }

    @Override
    public void confer() {
        System.out.println("StaticProxyStar.confer()");
    }

    @Override
    public void signContract() {
        System.out.println("StaticProxyStar.signContract()");
    }

    @Override
    public void bookTicket() {
        System.out.println("StaticProxyStar.bookTicket()");
    }

    @Override
    public void sing() {
        realStar.sing();
    }

    @Override
    public void collectMoney() {
        System.out.println("StaticProxyStar.collectMoney()");
    }

}
